home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 February
/
Macworld (1999-02).dmg
/
Games World
/
SharewareGames
/
Xconq 7.2.2
/
lib
/
makedir.pl
< prev
next >
Wrap
Perl Script
|
1998-05-22
|
466b
|
21 lines
#! /usr/unsupported/bin/perl
foreach $file (@ARGV) {
open(IMF,"<$file") || warn "Cannot open $file.\n";
while (<IMF>) {
if (/imf\s*\"([^\"]*)\"/) {
$imf = $1;
if ($where{$imf} && $where{$imf} ne $file) {
warn "Family $imf present in files $where{$imf} and $file.\n";
} else {
$where{$imf} = $file;
}
}
}
}
print "ImageFamilyName FileName\n";
foreach $imf (sort keys(%where)) {
print "$imf $where{$imf}\n";
}
print ". .\n";